<template>
  <div id="app">
    <!-- 一级路由出口 -->
    <keep-alive include="MyArticleList">
      <router-view />
    </keep-alive>

    <van-tabbar v-model="active" route>
      <van-tabbar-item icon="home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="newspaper-o" to="/article">文章</van-tabbar-item>
      <van-tabbar-item icon="award-o" to="/koubeilist">口碑</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/user">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>

<style lang="scss">
* {
  margin: 0;
  padding: 0;
}
body {
  font-family: "microsoft yahei";
  padding-bottom: 100px;
}
</style>
